<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta content="" name="Keywords">
    <meta content="" name="Description">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
</head>

<body>
<div class="main">
    <div id="main-content">
        <div class="rotate-box">
            <div class="start-phone"></div>
        </div>
        <div class="tips-text">
            加载中 ...
        </div>
    </div>
</div>

<div class="popup">
    <div class="box">
        <div class="img-area">
            <div class="img"></div>
        </div>
        <div class="text">
            额~出现故障<br/>
            程序鹅正在努力排查中<br/>
            请耐心等待~<br/>
        </div>
        <div class="close"></div>
    </div>
</div>
<script type="text/javascript" src="/shake/wapp/assets/lib/zepto.min.js"></script>
<script type="text/javascript" src="/shake/common/js/alpaca-spa-2.0.js"></script>
<script type="text/javascript" src="/shake/wapp/wapp.js"></script>
<script type="text/javascript" src="/shake/wapp/controller/index.js"></script>
<script type="text/javascript" src="/shake/wapp/controller/auth.js"></script>
<script type="text/javascript">
    function GetQueryString(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
        var r   = window.location.search.substr(1).match(reg);
        if (r != null) {
            return (r[2]);
        }
        return null;
    }
</script>

<script type="text/javascript" charset="utf-8">
    //定义常量
    var G_URL = "http://" + window.location.host;                   //* 服务器地址 */
    var WS_URL = "ws://" + window.location.host + ":8082";          //* web-socket 地址 */
    var WS = null;

    var ACTIVITY_ID = GetQueryString('activity_id');                //* 活动ID */
    var ITEM_ID = null;                                             //* 活动项目ID */

    var audio =0;
    $(function () {

        audio = document.getElementById('shake_audio');

        // 微信提供的事件，微信浏览器内部初始化完成后
        document.addEventListener("WeixinJSBridgeReady", function () {
            audio.load();
        }, false);

        Alpaca.Config.baseUrl = "/shake/";                          //alpaca-spa根路径
        Alpaca.run("#/wapp/auth/getWsToken");
    });
</script>
</body>

</html>